package com.example.springboot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author cpf
 *
 */
@TableName("sys_role")
@ApiModel(value = "Role对象", description = "")
public class Role implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("名称")
    private String name;

    @ApiModelProperty("描述")
    private String description;

    @ApiModelProperty("唯一标识")
    private String flag;

    public Integer getId() {
       return id;
    }


    public void setId(Integer id) {
        this.id = id;
    }


    public String getName() {
       return name;
    }


    public void setName(String name) {
        this.name = name;
    }


    public String getDescription() {
       return description;
    }


    public void setDescription(String description) {
        this.description = description;
    }


    public String getFlag() {
       return flag;
    }


    public void setFlag(String flag) {
        this.flag = flag;
    }



    @Override
    public String toString() {
        return "Role{" +
        "id=" + id +
        ", name=" + name +
        ", description=" + description +
        ", flag=" + flag +
        "}";
    }
}
